<?php
  abstract 	class BaseController extends Zend_Controller_Action {
		public function init()
	    {
	        /* Initialize action controller here */
	    	$url = constant ( "APPLICATION_PATH" ) . DIRECTORY_SEPARATOR . 'configs' . DIRECTORY_SEPARATOR . 'application.ini';		
			$dbconfig = new Zend_Config_Ini ( $url, "mysql" );
			$db = Zend_Db::factory ( $dbconfig->db );		
			$db->query ( "SET NAMES utf8" );
			$db->query ( "SET CHARACTER SET utf8" );
			$db->query ( "SET COLLATION_CONNECTION='utf8_general_ci'" );
			Zend_Db_Table::setDefaultAdapter ( $db );
			
	    	
	    }
	    
		  
	}
?>